import service from '@/utils/crmRequest'

export default () => ({
  // 细心采编创建
  INVENTORY_CREATE: function(data) {
    return service({
      url: '/api/monthlyCheck/create',
      method: 'post',
      data
    })
  },

  INVENTORY_EDITER: function(data) {
    return service({
      url: '/api/monthlyCheck/update',
      method: 'put',
      data
    })
  },

  INVENTORY_LIST: function(data) {
    return service({
      url: '/api/monthlyCheck/list',
      method: 'post',
      data
    })
  },

  INVENTORY_DETELETE: function(id) {
    return service({
      url: `/api/monthlyCheck/delete?id=${id}`,
      method: 'delete',
    })
  },

  INVENTORY_DETAILS: function(id) {
    return service({
      url: `/api/monthlyCheck/detail?id=${id}`,
      method: 'get',
    })
  },

  INVENTORY_PRODUCT: function(id) {
    return service({
      url: `api/distribute/products?id=${id}`,
      method: 'get',
    })
  },

})
